package org.jeecg.modules.collectarticles.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.collectarticles.entity.PhilCollectionArticles;
import org.jeecg.modules.collectarticles.vo.CollectsVO;

import java.util.List;

/**
 * @Description: 用户收藏文章表
 * @Author: jeecg-boot
 * @Date:   2020-11-11
 * @Version: V1.0
 */
public interface PhilCollectionArticlesMapper extends BaseMapper<PhilCollectionArticles> {
    /**
     * TODO:
     *
     * @author: Zhang hao yu
     * @param page
     * @param openId
     * @return: java.util.List<org.jeecg.modules.collectarticles.entity.PhilCollectionArticles>
     */
    @Select("select * from `phil_collection_articles` where  user_open_id = #{openId} order by create_time desc")
    List<PhilCollectionArticles> selectList(Page<CollectsVO> page, @Param("openId") String openId);



    List<CollectsVO> selectList2(Page<CollectsVO> page, String openId);
    /**
     * TODO:
     *
     *
     * @author ZhangHaoyu
     * @param str
     * @return void
     */
//    @Select()
//    void selectA(@Param("str") String str);
}
